//AttackSubStateMachine
import DirectionSubStateMachine from '../../Base/DirectionSubStateMachine'

import { DIRECTION_ENUM, PARAMS_NAME_ENUM, SPIKES_TYPE_MAP_TOTAL_COUNT_ENUM, SPIKE_COUNT_ENUM, SPIKE_COUNT_MAP_NUMBER_ENUM } from '../../Enum'
import State from '../../Base/State'
import { StateMachine } from '../../Base/StateMachine'
import { SubStateMachine } from '../../Base/SubStateMachine'


export default class SpikesSubStateMachine extends SubStateMachine {

    run() {
        const value=this.fsm.getParams(PARAMS_NAME_ENUM.SPIKES_CUR_COUNT)
        this.currentState=this.stateMachines.get(SPIKE_COUNT_MAP_NUMBER_ENUM[value as number])
    }
}
